package com.tdkj.model.common;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.information.BeanExpert;
/**
 * KyFriendlylink entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "common_file")
public class BeanFile extends BaseEntity{
	private String title;
	private String url;
	private String uuid;
	private String description;
	private String filename;
	private String filetype;
	private String contenttype;
	private Long fsize;
	private Timestamp createtime;
	private BeanPhotoCategory photocategory;
	private BeanExpert expert;
	private String status;

	@Column(name = "title", length = 40)
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	@Column(name = "fsize", length = 40)
	public Long getFsize() {
		return fsize;
	}

	public void setFsize(Long fsize) {
		this.fsize = fsize;
	}

	@Column(name = "status", length = 40)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "url", length =200)
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	@Column(name = "uuid", length = 100)
	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	@Column(name = "filetype", length = 40)
	public String getFiletype() {
		return filetype;
	}

	public void setFiletype(String filetype) {
		this.filetype = filetype;
	}
	@Column(name = "contenttype", length = 40)
	public String getContenttype() {
		return contenttype;
	}

	public void setContenttype(String contenttype) {
		this.contenttype = contenttype;
	}

	@Column(name = "description", length = 40)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "filename", length = 40)
	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "photocategoryid")
	public BeanPhotoCategory getPhotocategory() {
		return photocategory;
	}

	public void setPhotocategory(BeanPhotoCategory photocategory) {
		this.photocategory = photocategory;
	}

	@ManyToOne(cascade = CascadeType.REFRESH, fetch = FetchType.LAZY)
	@JoinColumn(name = "expertid")
	public BeanExpert getExpert() {
		return expert;
	}

	public void setExpert(BeanExpert expert) {
		this.expert=expert;
	}

}